STEP 11: Let's tell the user that the player made a goal.

  • In GRAPHICS, go to and drag in Set Text INSIDE your else block.
  • Change the variable name in front of .set_text() from sprite to text.
  • Change the string argument inside of .set_text() from "Hello Codesters!" to "GOAL!".

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)